package com.zoro.barn.business.service.sqldocument.business.sql.dto;

import java.util.Date;
import java.util.List;

/**
 * @author zhaoxingwu
 */
public class SqlInfoDto {
    private String pid;
    private String remark;
    private Date createTime;
    private String createId;
    private String createName;
    private String sqlTitle;
    private String documentId;
    private Date updateTime;
    private String updateId;
    private String sqlText;
    private Integer sqlOrder;
    private String productId;
    private String productName;
    private String schemaName;
    private List<UseProjectDto> use;

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getSqlTitle() {
        return sqlTitle;
    }

    public void setSqlTitle(String sqlTitle) {
        this.sqlTitle = sqlTitle;
    }

    public String getDocumentId() {
        return documentId;
    }

    public void setDocumentId(String documentId) {
        this.documentId = documentId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }

    public String getSqlText() {
        return sqlText;
    }

    public void setSqlText(String sqlText) {
        this.sqlText = sqlText;
    }

    public Integer getSqlOrder() {
        return sqlOrder;
    }

    public void setSqlOrder(Integer sqlOrder) {
        this.sqlOrder = sqlOrder;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getSchemaName() {
        return schemaName;
    }

    public void setSchemaName(String schemaName) {
        this.schemaName = schemaName;
    }

    public List<UseProjectDto> getUse() {
        return use;
    }

    public void setUse(List<UseProjectDto> use) {
        this.use = use;
    }

    @Override
    public String toString() {
        return "SqlInfoDto{" +
                "pid='" + pid + '\'' +
                ", remark='" + remark + '\'' +
                ", createTime=" + createTime +
                ", createId='" + createId + '\'' +
                ", createName='" + createName + '\'' +
                ", sqlTitle='" + sqlTitle + '\'' +
                ", documentId='" + documentId + '\'' +
                ", updateTime=" + updateTime +
                ", updateId='" + updateId + '\'' +
                ", sqlText='" + sqlText + '\'' +
                ", sqlOrder=" + sqlOrder +
                ", productId='" + productId + '\'' +
                ", productName='" + productName + '\'' +
                ", schemaName='" + schemaName + '\'' +
                ", use=" + (use == null ? "_null_" : use.size() ) +
                '}';
    }
}
